﻿using System.Windows.Controls;

namespace Flare.Pages.Reports
{
    public partial class ReportsMenu : UserControl, ITypicalPage
    {
        public string name
        {
            get { return "Отчеты"; }
        }

        public int count_free_ip
        {
            get { return new DB.report_free_ip().Count(); }
        }

        public ReportsMenu()
        {
            InitializeComponent();
        }

        private void FreeIp_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            glob.kernel.ShowPage(typeof(Pages.Reports.FreeIp));
        }
        
        private void NetMap_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            glob.kernel.ShowPage(typeof(Pages.Reports.NetworkMap));
        }

        private void HystoryMove_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            glob.kernel.ShowPage(typeof(Pages.Reports.MoveHardHistory));
        }
    }
}
